package org.example.test;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;

public class test5 {
    public static void main(String[] args) throws IOException {
        OutputStream os=new FileOutputStream("E:\\测试文件\\hello.txt");
        byte[] b=new byte[]{
                (byte)'G', (byte)'o', (byte)'o', (byte)'d', (byte)'B', (byte)'a'
        };
        os.write(b,0,5);
        os.flush();
    }
}
